
using Core.Toolkit.Core.Entitys;
using System;
using System.ComponentModel.DataAnnotations;

namespace Core.SimpleTemp.Entitys
{
    /// <summary>
    /// 隐患_隐患排查明细
    /// </summary>
    public class YH_ScreeningDetail : Entity
    {
        /// <summary>
        /// 是否为计划内排查（或者是排查时又新增的）
        /// </summary>
        public bool IsNotPlan { get; set; }
        public Guid? ScreeningProjectId { get; set; }
        #region *
        /// <summary>
        /// 隐患排查计划项目ID
        /// </summary>
        public Guid? ScreeningPlanProjectId { get; set; }
        /// <summary>
        /// 排查大类代码
        /// </summary>
        public String SearchMajorCode { get; set; }
        /// <summary>
        /// 隐患类型ID
        /// </summary>
        public Guid? HazardTypeID { get; set; }
        /// <summary>
        /// 排查标准ID
        /// </summary>
        public Guid? StandardID { get; set; }
        /// <summary>
        /// 排查标准内容
        /// </summary>
        public String StandardContent { get; set; }
        #endregion

        /// <summary>
        /// 上报分类(0计划/1非计划) *pd没有
        /// </summary>
        public String ReportType { get; set; }
        /// <summary>
        /// 排查计划项目明细ID *pd没有
        /// </summary>
        public Guid? ScreeningPlanProDetailId { get; set; }
        /// <summary>
        /// 检查时间 *pd没有
        /// </summary>
        public DateTime? InspectTime { get; set; }
        /// <summary>
        /// 标准/手动
        /// </summary>
        [StringLength(20)]
        public String Type { get; set; }
        /// <summary>
        /// 排查结果
        /// </summary>
        [StringLength(20)]
        public String result { get; set; }
        /// <summary>
        /// 隐患台账ID
        /// </summary>
        public Guid? StandingBookId { get; set; }
        /// <summary>
        /// 隐患台账编码
        /// </summary>
        [StringLength(50)]
        public String StandingBookNo { get; set; }
        /// <summary>
        /// 状态(保存/提交)
        /// </summary>
        public String Status { get; set; }
        /// <summary>
        /// 排查项目 *pd没有
        /// </summary>
        public String ClearanceProjects { get; set; }
        /// <summary>
        /// 区域 *pd没有
        /// </summary>
        public Guid? AreaID { get; set; }
        /// <summary>
        /// 位置 *pd没有
        /// </summary>
        public Guid? LocationID { get; set; }
        /// <summary>
        /// 排查人
        /// </summary>
        public Guid? PersonID { get; set; }
        /// <summary>
        /// 排查时间
        /// </summary>
        public DateTime? Time { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? CreateFactory { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? CreateDept { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public Guid? UpdateDept { get; set; }
        public Guid? RiskLevel { get; set; }

        public YH_Grade YH_Grade { get; set; }
        public YH_StandingBook  YH_StandingBook { get; set; }


        /// <summary>
        /// 排查计划明细
        /// </summary>
        //public YH_ScreeningPlanProDetail YH_ScreeningPlanProDetail { get; set; }

    }
}
